package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WmsWarehouseMapper;
import com.ruoyi.system.domain.WmsWarehouse;
import com.ruoyi.system.service.IWmsWarehouseService;

/**
 * 仓库 Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-08
 */
@Service
public class WmsWarehouseServiceImpl implements IWmsWarehouseService 
{
    @Autowired
    private WmsWarehouseMapper wmsWarehouseMapper;

    /**
     * 查询仓库 
     * 
     * @param warehouseId 仓库 主键
     * @return 仓库 
     */
    @Override
    public WmsWarehouse selectWmsWarehouseByWarehouseId(Long warehouseId)
    {
        return wmsWarehouseMapper.selectWmsWarehouseByWarehouseId(warehouseId);
    }

    /**
     * 查询仓库 列表
     * 
     * @param wmsWarehouse 仓库 
     * @return 仓库 
     */
    @Override
    public List<WmsWarehouse> selectWmsWarehouseList(WmsWarehouse wmsWarehouse)
    {
        return wmsWarehouseMapper.selectWmsWarehouseList(wmsWarehouse);
    }

    /**
     * 新增仓库 
     * 
     * @param wmsWarehouse 仓库 
     * @return 结果
     */
    @Override
    public int insertWmsWarehouse(WmsWarehouse wmsWarehouse)
    {
        return wmsWarehouseMapper.insertWmsWarehouse(wmsWarehouse);
    }

    /**
     * 修改仓库 
     * 
     * @param wmsWarehouse 仓库 
     * @return 结果
     */
    @Override
    public int updateWmsWarehouse(WmsWarehouse wmsWarehouse)
    {
        return wmsWarehouseMapper.updateWmsWarehouse(wmsWarehouse);
    }

    /**
     * 批量删除仓库 
     * 
     * @param warehouseIds 需要删除的仓库 主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehouseByWarehouseIds(Long[] warehouseIds)
    {
        return wmsWarehouseMapper.deleteWmsWarehouseByWarehouseIds(warehouseIds);
    }

    /**
     * 删除仓库 信息
     * 
     * @param warehouseId 仓库 主键
     * @return 结果
     */
    @Override
    public int deleteWmsWarehouseByWarehouseId(Long warehouseId)
    {
        return wmsWarehouseMapper.deleteWmsWarehouseByWarehouseId(warehouseId);
    }
}
